-
-
Notifications
You must be signed in to change notification settings - Fork 282
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
black -> ruff format + cleanup #1639
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! This looks good to me
I'm struggling to get the Windows 3.9 build to pass:
There are similar issues like pyca/cryptography#9444 and PyO3/pyo3#3425 |
@Saransh-cpp - could I convince you to reorient this PR to the v3 branch? I'm very much hoping that the release we are preparing now is the last in the 2.* series which makes this change likely to go out of date quickly. |
Ahh, changing the base branch messed up everything :( No worries, I'll try fixing this locally. |
052225a
to
5d6250b
Compare
I think the workflow failures are unrelated to this PR? |
@Saransh-cpp - try pulling the v3 branch once more. We made a lot of progress on the v3 branch CI last week so things should be good to go. |
Thanks, @jhamman! Could you please let me know if the new errors in the CI are related to my PR? |
I think not.
looks very much like a problem I've been trying to solve on the mainline: |
Thanks! |
@Saransh-cpp - this seemed really close. Can you resolve the conflicts and we can get it in. |
pre-commit.ci autofix |
Hi, @jhamman, this looks good to go now! |
Thanks @Saransh-cpp! |
❤️ |
* black -> ruff + cleanup * format * Preserve git blame * pre-commit fix
* chore: add deprecation warnings to v3 classes / functions * Resolve Mypy erorrs in `v3` branch (#1692) * refactor(v3): Using appropriate types * fix(v3): Typing fixes + minor code fixes * fix(v3): _sync_iter works with coroutines * docs(v3/store/core.py): clearer comment * fix(metadata.py): Use Any outside TYPE_CHECKING for Pydantic * fix(zarr/v3): correct zarr format + remove unused method * fix(v3/store/core.py): Potential suggestion on handling str store_like * refactor(zarr/v3): Add more typing * ci(.pre-commit-config.yaml): zarr v3 mypy checks turned on in pre-commit * Specify hatch envs using GitHub actions matrix for v3 tests (#1728) * Specify v3 hatch envs using GitHub actions matrix * Update .github/workflows/test-v3.yml Co-authored-by: Joe Hamman <[email protected]> * Update .github/workflows/test-v3.yml Co-authored-by: Joe Hamman <[email protected]> * test on 3.12 too * no 3.12 --------- Co-authored-by: Joe Hamman <[email protected]> Co-authored-by: Joe Hamman <[email protected]> * black -> ruff format + cleanup (#1639) * black -> ruff + cleanup * format * Preserve git blame * pre-commit fix * Remove outdated dev install docs from installation.rst and link to contributing.rst (#1643) Co-authored-by: Joe Hamman <[email protected]> * chore: remove old v3 implementation * chore: remove more version-conditional logic * chore: remove v3_storage_transformers.py again --------- Co-authored-by: Daniel Jahn (dahn) <[email protected]> Co-authored-by: Max Jones <[email protected]> Co-authored-by: Joe Hamman <[email protected]> Co-authored-by: Joe Hamman <[email protected]> Co-authored-by: Saransh Chopra <[email protected]> Co-authored-by: Alden Keefe Sampson <[email protected]>
Ruff can now format files. Ruff formatter is much faster than black.
Other changes are good practices recommended by scientific python.
TODO: